package com.ship.dto;

import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
//多条件查询允许为空
public class UserSearchDto extends BaseDto{

    @Pattern(regexp = "[\\u4e00-\\u9fa5]{1,10}", message = "姓名格式错误")
    private String username;
    @Pattern(regexp = "[1][3456789][0-9]*", message = "手机格式错误")
    private String tel;
    @Pattern(regexp = ".{0,10}", message = "部门格式错误")
    private String deptName;
    @Pattern(regexp = "[102]", message = "性别格式错误")
    private String sex;
}
